package com.ruoyi.common.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * AliYunConfig
 *
 * @author HHKJ-SERVER-ZJ
 * @since 2023/10/7 14:32
 */
@Component
@ConfigurationProperties(prefix = "aliyun")
public class AliYunConfig {

    /** 阿里云API的密钥Access Key ID */
    private static String accessKeyId;

    /** 阿里云API的密钥Access Key Secret */
    private static String accessKeySecret;

    /**  OSS 阿里云API的内或外网域名节点 */
    private static String OSSEndpoint;

    /** OSS 阿里云API的内或外网域名 */
    private static String OSSBucketName;

    /** ORC 阿里云 阿里云API的内或外网域名节点 */
    private static String OCREndpoint;

    /** 阿里云地址前缀 */
    private static String urlPrefix;

    /** 项目在阿里云的根目录 */
    private static String projectRootFolderName;

    public static String getAccessKeyId() {
        return accessKeyId;
    }

    public void setAccessKeyId(String accessKeyId) {
        AliYunConfig.accessKeyId = accessKeyId;
    }

    public static String getAccessKeySecret() {
        return accessKeySecret;
    }

    public void setAccessKeySecret(String accessKeySecret) {
        AliYunConfig.accessKeySecret = accessKeySecret;
    }

    public static String getOSSEndpoint() {
        return OSSEndpoint;
    }

    public void setOSSEndpoint(String OSSEndpoint) {
        AliYunConfig.OSSEndpoint = OSSEndpoint;
    }

    public static String getOSSBucketName() {
        return OSSBucketName;
    }

    public void setOSSBucketName(String OSSBucketName) {
        AliYunConfig.OSSBucketName = OSSBucketName;
    }

    public static String getOCREndpoint() {
        return OCREndpoint;
    }

    public void setOCREndpoint(String OCREndpoint) {
        AliYunConfig.OCREndpoint = OCREndpoint;
    }

    public static String getUrlPrefix() {
        return urlPrefix;
    }

    public void setUrlPrefix(String urlPrefix) {
        AliYunConfig.urlPrefix = urlPrefix;
    }

    public static String getProjectRootFolderName() {
        return projectRootFolderName;
    }

    public void setProjectRootFolderName(String projectRootFolderName) {
        AliYunConfig.projectRootFolderName = projectRootFolderName;
    }
}
